
/**
 * 左侧标签
 * @param param0 
 * @returns 
 */
export default function Leftlbl(
	{
		label,
		required,
		width = '8rem'
	}: {
		label: string;
		required?: boolean;
		width?: string
	}) {
	return <>
		<div className='bg'>
			{required && <img style={{ marginRight: '0.2rem' }} src={'/images/required.png'} />}
			<span className='lbl'>{label}：</span>
			<style jsx>{`
.bg{
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
width: ${width};
flex-grow: 0;
}
.lbl{
font-size: 0.875rem;
color: #000000;
text-align: end;
}
`}</style>
		</div>
	</>;
}
